package com.ctshk.rpc.order.hotel.req.h5;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

@Data
@ApiModel(description="订单积分req")
public class HotelOrderPointsReq implements Serializable {

    private static final long serialVersionUID = 3482214842090825867L;

    @NotNull(message = "订单总价不能为空")
    @ApiModelProperty(value = "订单总价", required = true)
    private BigDecimal price;

    @NotNull(message = "酒店产品id必传")
    @ApiModelProperty(value = "酒店产品id")
    private Long productId;

    @NotNull(message = "请填写入住日期")
    @ApiModelProperty(value = "入住日期", example = "2021-05-01")
    private LocalDate checkInDate;

    @NotNull(message = "请填写离店日期")
    @ApiModelProperty(value = "离店日期", example = "2021-05-03")
    private LocalDate checkOutDate;

    @NotNull(message = "晚数不能为空")
    @ApiModelProperty(value = "晚数", example = "3")
    private Integer nights;

    @NotNull(message = "房间数量不能为空")
    @ApiModelProperty(value = "间房（房间数量）", example = "3")
    private Integer roomNum;

    @NotNull(message = "成人数不能为空")
    @ApiModelProperty(value = "成人数", example = "2")
    private Integer adultNum;

    @NotNull(message = "儿童数不能为空")
    @ApiModelProperty(value = "儿童数", example = "4")
    private Integer childrenNum;

}
